package computer;

public class ProgramCounter {
	
	private int pc = 0;
	
	public ProgramCounter() {
		pc = 0;
	}
	
	public void set(int pc) {
		this.pc = pc;
	}
	
	public void increase() {
		pc++;
	}
	
	public int value() {
		return pc;
	}
	
	public boolean halt() {
		return pc < 0;
	}

}
